home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / PCL4W10.ZIP / PCL4W.H < prev    next >
Text File  |  1994-01-18  |  5KB  |  193 lines

  1. /*** PCL4C.H ***/
  2.  
  3. #if __cplusplus
  4. /* External Library Function Prototypes for C++ */
  5. extern "C" int FAR PASCAL SioBaud(int, int);
  6. extern "C" int FAR PASCAL SioBrkSig(int, char);
  7. extern "C" int FAR PASCAL SioCTS(int);
  8. extern "C" int FAR PASCAL SioDCD(int);
  9. extern "C" int FAR PASCAL SioDSR(int);
  10. extern "C" int FAR PASCAL SioDTR(int, char);
  11. extern "C" int FAR PASCAL SioDone(int);
  12. extern "C" int FAR PASCAL SioFIFO(int, int);
  13. extern "C" int FAR PASCAL SioFlow(int, int);
  14. extern "C" int FAR PASCAL SioGetc(int);
  15. extern "C" int FAR PASCAL SioInfo(char);
  16. extern "C" int FAR PASCAL SioIRQ(int, int);
  17. extern "C" int FAR PASCAL SioLine(int);
  18. extern "C" int FAR PASCAL SioLoopBack(int);
  19. extern "C" int FAR PASCAL SioModem(int, char);
  20. extern "C" int FAR PASCAL SioParms(int, int, int, int);
  21. extern "C" int FAR PASCAL SioPorts(int,int,int);
  22. extern "C" int FAR PASCAL SioPutc(int, char);
  23. extern "C" int FAR PASCAL SioRead(int, int);
  24. extern "C" int FAR PASCAL SioReset(int, int);
  25. extern "C" int FAR PASCAL SioRI(int);
  26. extern "C" int FAR PASCAL SioRTS(int, char);
  27. extern "C" int FAR PASCAL SioRxBuf(int, int, int);
  28. extern "C" int FAR PASCAL SioRxFlush(int);
  29. extern "C" int FAR PASCAL SioRxQue(int);
  30. extern "C" int FAR PASCAL SioTxBuf(int, int, int);
  31. extern "C" int FAR PASCAL SioTxFlush(int);
  32. extern "C" int FAR PASCAL SioTxQue(int);
  33. extern "C" int FAR PASCAL SioUART(int, int);
  34. extern "C" int FAR PASCAL SioUnGetc(int, char);
  35. extern "C" int FAR PASCAL SioDebug(int);
  36. #else
  37. /* External Library Function Prototypes for C */
  38. extern int FAR PASCAL SioBaud(int, int);
  39. extern int FAR PASCAL SioBrkSig(int, char);
  40. extern int FAR PASCAL SioCTS(int);
  41. extern int FAR PASCAL SioDCD(int);
  42. extern int FAR PASCAL SioDSR(int);
  43. extern int FAR PASCAL SioDTR(int, char);
  44. extern int FAR PASCAL SioDone(int);
  45. extern int FAR PASCAL SioFIFO(int, int);
  46. extern int FAR PASCAL SioFlow(int, int);
  47. extern int FAR PASCAL SioGetc(int);
  48. extern int FAR PASCAL SioInfo(char);
  49. extern int FAR PASCAL SioIRQ(int, int);
  50. extern int FAR PASCAL SioLine(int);
  51. extern int FAR PASCAL SioLoopBack(int);
  52. extern int FAR PASCAL SioModem(int, char);
  53. extern int FAR PASCAL SioParms(int, int, int, int);
  54. extern int FAR PASCAL SioPorts(int,int,int);
  55. extern int FAR PASCAL SioPutc(int, char);
  56. extern int FAR PASCAL SioRead(int, int);
  57. extern int FAR PASCAL SioReset(int, int);
  58. extern int FAR PASCAL SioRI(int);
  59. extern int FAR PASCAL SioRTS(int, char);
  60. extern int FAR PASCAL SioRxBuf(int, int, int);
  61. extern int FAR PASCAL SioRxFlush(int);
  62. extern int FAR PASCAL SioRxQue(int);
  63. extern int FAR PASCAL SioTxBuf(int, int, int);
  64. extern int FAR PASCAL SioTxFlush(int);
  65. extern int FAR PASCAL SioTxQue(int);
  66. extern int FAR PASCAL SioUART(int, int);
  67. extern int FAR PASCAL SioUnGetc(int, char);
  68. extern int FAR PASCAL SioDebug(int);
  69. #endif
  70.  
  71. /* Port Codes */
  72.  
  73. #define COM1   0
  74. #define COM2   1
  75. #define COM3   2
  76. #define COM4   3
  77. #define COM5   4
  78. #define COM6   5
  79. #define COM7   6
  80. #define COM8   7
  81. #define COM9   8
  82. #define COM10  9
  83.  
  84. /* Baud Rate Codes */
  85.  
  86. #define Baud300 0
  87. #define Baud600 1
  88. #define Baud1200 2
  89. #define Baud2400 3
  90. #define Baud4800 4
  91. #define Baud9600 5
  92. #define Baud19200 6
  93. #define Baud38400 7
  94. #define Baud57600 8
  95. #define Baud115200 9
  96.  
  97. #define NORESET -1
  98.  
  99. /* Parity Codes */
  100.  
  101. #define NoParity 0
  102. #define OddParity  1
  103. #define EvenParity 3
  104. #define MarkParity 5
  105. #define SpaceParity 7
  106.  
  107. /* Stop Bit Codes */
  108.  
  109. #define OneStopBit  0
  110. #define TwoStopBits 1
  111.  
  112. /* Word Length Codes */
  113.  
  114. #define WordLength5  0
  115. #define WordLength6  1
  116. #define WordLength7  2
  117. #define WordLength8  3
  118.  
  119. /* Buffer Size Codes */
  120.  
  121. #define Size8    0
  122. #define Size16   1
  123. #define Size32   2
  124. #define Size64   3
  125. #define Size128  4
  126. #define Size256  5
  127. #define Size512  6
  128. #define Size1024 7
  129. #define Size2048 8
  130. #define Size4096 9
  131. #define Size8192  10
  132. #define Size16384 11
  133. #define Size32768 12
  134. #define Size1K   7
  135. #define Size2K   8
  136. #define Size4K   9
  137. #define Size8K  10
  138. #define Size16K 11
  139. #define Size32K 12
  140.  
  141. /* Line Status Masks */
  142.  
  143. #define TransBufferEmpty 0x20
  144. #define BreakDetect  0x10
  145. #define FramingError 0x08
  146. #define ParityError  0x04
  147. #define OverrunError 0x02
  148. #define DataReady    0x01
  149.  
  150. /* Modem Status Masks */
  151.  
  152. #define DCD 0x80
  153. #define RI  0x40
  154. #define DSR 0x20
  155. #define CTS 0x10
  156. #define DeltaDCD 0x08
  157. #define DeltaRI  0x04
  158. #define DeltaDSR 0x02
  159. #define DeltaCTS 0x01
  160.  
  161. /* Break Signal Commands */
  162.  
  163. #define ASSERT_BREAK 'A'
  164. #define CANCEL_BREAK 'C'
  165. #define DETECT_BREAK 'D'
  166.  
  167. /* SioDTR & SioRTS Commands */
  168.  
  169. #define SET_LINE   'S'
  170. #define CLEAR_LINE 'C'
  171. #define READ_LINE  'R'
  172.  
  173. /* FIFO level codes */
  174. #define FIFO_OFF -1
  175. #define LEVEL_1   0
  176. #define LEVEL_4   1
  177. #define LEVEL_8   2
  178. #define LEVEL_14  3
  179.  
  180. /* IRQ codes */
  181.  
  182. #define IRQ2  2
  183. #define IRQ3  3
  184. #define IRQ4  4
  185. #define IRQ5  5
  186. #define IRQ6  6
  187. #define IRQ7  7
  188.  
  189. /* SioInfo Commands */
  190.  
  191. #define VERSION 'V'
  192. #define M_MODEL 'M'
  193.